package com.share.common.util;

import org.springframework.util.ObjectUtils;

import java.util.UUID;

/**
 * Created with IntelliJ IDEA.
 *
 * @author liw
 * @version 1.0
 * @date 2024/2/2 15:51
 */
public class CommonUtil {

    public static boolean isEmpty(Object obj) {
        return ObjectUtils.isEmpty(obj);
    }

    public static String getStr32() {
        return UUID.randomUUID().toString().replaceAll("-", "").substring(0, 32);
    }
}
